// [[ OnflowGenerator File UUID: 606404708619440da2eee2f32f4163a2  ]]
package com.itdct.onflow.system.message.qo

import com.itdct.onflow.core.qo.BaseQo
import com.itdct.onflow.core.type.Add
import com.itdct.onflow.core.type.Update
import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.NotNull
import org.hibernate.validator.constraints.Length

/**
 * @author DCTANT
 * @date 2025-09-18 17:04:07
 * @version 1.0
 * @description 系统站内信编辑入参
 */
@Schema(name = "系统站内信编辑入参", description = "系统站内信编辑入参")
class SysMessageEditQo : BaseQo() {
    // [[ OnflowGenerator Range (- fields -) Start ]]
    @Schema(title = "标题", example = "")
    @NotBlank(message = "请输入标题", groups = [Add::class, Update::class])
    @Length(max = 200, message = "标题不能超过200个字符", groups = [Add::class, Update::class])
    var title: String? = null

    @Schema(title = "内容", example = "")
    @NotBlank(message = "请输入内容", groups = [Add::class, Update::class])
    @Length(max = 5000, message = "内容不能超过5000个字符", groups = [Add::class, Update::class])
    var content: String? = null

    @Schema(title = "接收人", example = "")
    @NotNull(message = "请输入接收人", groups = [Add::class, Update::class])
    var receiveUser: Long? = null

    @Schema(title = "跳转链接", example = "")
    @Length(max = 500, message = "跳转链接不能超过500个字符", groups = [Add::class, Update::class])
    var url: String? = null

    @Schema(title = "平台类型", example = "")
    @NotBlank(message = "请输入平台类型", groups = [Add::class, Update::class])
    @Length(max = 100, message = "平台类型不能超过100个字符", groups = [Add::class, Update::class])
    var platformType: String? = null

    @Schema(title = "模块名称", example = "")
    @NotBlank(message = "请输入模块名称", groups = [Add::class, Update::class])
    @Length(max = 100, message = "模块名称不能超过100个字符", groups = [Add::class, Update::class])
    var moduleName: String? = null

    @Schema(title = "备注", example = "")
    @Length(max = 500, message = "备注不能超过500个字符", groups = [Add::class, Update::class])
    var remark: String? = null

// [[ OnflowGenerator Range (- fields -) End ]]
}